package com.book.bookmanager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.book.bookmanager.pojo.Role;
import org.apache.ibatis.annotations.Mapper;


import java.util.List;

@Mapper
public interface roleMapper extends BaseMapper<Role> {
    /**
     * 查询所有
     */
    public List<Role> selectAll();
    /**
     * 添加数据
     */
    public void add(Role role);




    void remove(Integer id);

    Role queryByRoleId(Integer roleId);

    void updateByRoleId(Role role);
}
